﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DatabaseItemLoadStateEventArgs.cs" company="SmartPlan">
//   SmartPlan 2011
// </copyright>
// <summary>
//   The db item load state event args.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace DbDiff.Common.Model
{
    using System;
    using Comparer;

    /// <summary>
    /// The database item load state event args.
    /// </summary>
    public class DatabaseItemLoadStateEventArgs : EventArgs
    {
        /// <summary>
        /// The index.
        /// </summary>
        private readonly SelectedDatabase index;

        /// <summary>
        /// Initializes a new instance of the <see cref="DatabaseItemLoadStateEventArgs"/> class.
        /// </summary>
        /// <param name="index">
        /// The index.
        /// </param>
        public DatabaseItemLoadStateEventArgs(SelectedDatabase index)
        {
            this.index = index;
        }

        /// <summary>
        /// Gets Index.
        /// </summary>
        public SelectedDatabase Index
        {
            get { return this.index; }
        }
    }
}